package cn.mldn.mldncloud.service;

import java.util.List;
import java.util.Map;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import cn.mldn.mldncloud.dto.OrdersDTO;
import cn.mldn.mldncloud.service.config.FeignClientConfig;
import cn.mldn.mldncloud.service.fallback.OrdersServiceFallbackFactory;

@FeignClient(value = "MLDNCLOUD-ZUUL-GATEWAY", configuration = FeignClientConfig.class, 
	fallbackFactory=OrdersServiceFallbackFactory.class)
public interface ICOrdersService {

	@GetMapping("/mldn-proxy/member-proxy/orders/list/{refectoryId}")
	public List<OrdersDTO> listOrders(@PathVariable("refectoryId") String refectoryId) ;
	@GetMapping("/mldn-proxy/member-proxy/orders/listToday/{refectoryId}")
	public List<OrdersDTO> listTodayOrders(@PathVariable("refectoryId") String refectoryId) ;
	@GetMapping("/mldn-proxy/member-proxy/orders/listToday/{refectoryId}/{page}/{size}")
	public Map<String,Object> listTodayOrdersPage(@PathVariable("refectoryId") String refectoryId,@PathVariable("page")int page,@PathVariable("size")int size) ;
	@GetMapping("/mldn-proxy/member-proxy/orders/list/{refectoryId}/{page}/{size}")
	public Map<String,Object> listOrdersPage(@PathVariable("refectoryId") String refectoryId,@PathVariable("page")int page,@PathVariable("size")int size) ;
	
}
